package GoFPatterns.kuang.method.service.impl;

import GoFPatterns.kuang.method.factory.BWMFactory;
import GoFPatterns.kuang.method.factory.CarFactory;
import GoFPatterns.kuang.method.factory.TeslaFactory;
import GoFPatterns.kuang.method.service.CarService;

public class TeslaServiceImpl implements CarService {
    @Override
    public void buy() {
        CarFactory factory = new TeslaFactory();
        factory.Car().getCar();
    }
}
